require('./static/css/reset.css');
require('./static/css/icon.css');
require('./static/css/media.css');
require('./static/css/pages.scss');
require('./static/css/crowdf.scss');
require('./static/css/mall.scss');
require('./static/css/user.scss');
require('./static/css/community.scss');

import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {syncHistoryWithStore} from 'react-router-redux';

import App from './containers/app';
import configureStore from './stores';
const store = configureStore();
import {hashHistory} from 'react-router';
const history = syncHistoryWithStore(hashHistory, store);

// store.subscribe(() =>{
//   loading_state = store.getState().app.loading;
//   }
// );
ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('zd')
)
